package com.hgkj.cloud.customer.common;

import java.util.Map;

/**
 * app返回结果
 * 
 * 
 */
public class ResponseData {

	/**
	 * 1表示成功，其他值表示失败
	 */
	private int code = 1;// 1表示成功，其他值表示失败
	/**
	 * 提示信息
	 */
	private String msg = "操作成功";// 提示信息
	/**
	 * 数据
	 */
	private Map<String, Object> data = null;// 数据

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Map<String, Object> getData() {
		return data;
	}

	public void setData(Map<String, Object> data) {
		this.data = data;
	}

	public static ResponseData getResponseData(int code, String msg) {
		ResponseData responseData = new ResponseData();
		responseData.setCode(code);
		responseData.setMsg(msg);
		return responseData;
	}
}
